package com.xm.dao;

import com.xm.po.OrderSettlements;

import java.util.List;

/**
 * @author Administrator
 * @date 2020-08-07-9:14
 * @description 订单结算数据操作接口
 */
public interface OrderSettlementsDao {
    /**
     * 新增订单结算
     * @param orderSettlements
     * @return
     */
    boolean add(OrderSettlements orderSettlements);

    /**
     * 修改订单结算数据
     * @param orderSettlements
     * @return
     */
    boolean update(OrderSettlements orderSettlements);

    /**
     * 根据订单编号查询结算数据
     * @param orderId
     * @return
     */
    OrderSettlements getOrderSettlementsByOrderId(Integer orderId);

    /**
     * 查询所有订单结算信息
     * @return
     */
    List<OrderSettlements>getAll();
}
